package com.hoshiibuy.fileServer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import com.spring4all.swagger.EnableSwagger2Doc;

@SpringBootApplication
@EnableDiscoveryClient
@EnableSwagger2Doc
public class HoshiibuyFileServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(HoshiibuyFileServerApplication.class, args);
	}

	/**
	 * @SuppressWarnings("deprecation")
	 * 
	 * @Bean public MultipartConfigElement multipartConfigElement() {
	 *       MultipartConfigFactory factory = new MultipartConfigFactory(); ////
	 *       设置文件大小限制 ,超了，页面会抛出异常信息，这时候就需要进行异常信息的处理了;
	 *       factory.setMaxFileSize("1024MB"); // KB,MB /// 设置总上传数据总大小
	 *       factory.setMaxRequestSize("10240MB"); return
	 *       factory.createMultipartConfig(); }
	 */

}
